package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.entities.Payment;
import com.service.PaymentService;
import com.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 *
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    PaymentMapper paymentMapper;

    @Override
    public int insert(Payment entity) {
        return paymentMapper.insert(entity);
    }

    @Override
    public Payment selectById(Integer id) {
        return paymentMapper.selectById(id);
    }
}




